package com.example.houqin_oa.controller;

import com.example.comment_oa.pojos.rear.Details;
import com.example.comment_oa.response.AjaxResponse;
import com.example.houqin_oa.service.DetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Description:订单详情
 * @Author:陈旭良
 * @Documents_And_Settings:liang
 * @Date:2023-02-07 23:57
 * @Entry_Name:my_springcloud_project01cangku
 */
@RestController
@CrossOrigin
@RequestMapping("/houqinOa")
public class DetailsController {
    @Autowired
    DetailsService detailsService;

    //订单详情查询
    @PostMapping("/details/AllDet")
    public AjaxResponse AllDet(@RequestBody Details details){
        return AjaxResponse.success(detailsService.allDet(details));
    }
}
